///描述一个sip对话的包
///保存sip对话相关数据..
pub mod dialog;
///描述sip事务动作的处理..
///此包内应该只有相对的处理单元,而数据应该保存在dialog内
pub mod transaction;
pub mod frame;
pub mod untils;

#[cfg(test)]
pub(crate) mod tests;

pub const SIP_NAME: &[u8] = b"SIP/";
pub const SIP_VERSION: &[u8] = b"SIP/2.0";
///一般分隔符
pub const SEPARATOR: &[u8] = b" ";
///分隔符: 分号
pub const SEMICOLON: &[u8] = b";";
pub const DOUBLE_QUOTATION: &[u8] = b"\"";
///sip url前缀括号
pub const SIP_URL_PREFIX_PARENTHESIS: &[u8] = b"<";
pub const SIP_URL_PREFIX: &[u8] = b"sip:";
pub const TAG_PREFIX: &[u8] = b";tag=";
///sip url的后缀
pub const SIP_URL_SUFFIX_PARENTHESIS: &[u8] = b">";
///branch字符,带魔数
pub const BRANCH_CHAR: &[u8] = b";branch=z9hG4bK";
///头字段的分隔符.此分隔符带冒号和空格
pub const HEAD_SEPARATOR: &[u8] = b": ";
pub const CRLF: &[u8] = b"\r\n";
